package northwind.service;

import java.util.Collection;

import org.springframework.dao.DataAccessException;

import northwind.model.Category;
import northwind.model.Product;

public interface ProductService {

	Collection<Category> findCategories() throws DataAccessException;

	Category findCategoryById(final int id) throws DataAccessException;

	int createCategory(final String name, final String description)
			throws DataAccessException;

	//
	Collection<Product> findAllProduct() throws DataAccessException;

	Collection<Product> findAllProductByCategory(final int categoryID)
			throws DataAccessException;
}
